package com.voicechat.firstmet.bean;

/**
 * @ProjectName: FirstMet
 * @Package: com.voicechat.firstmet.bean
 * @ClassName: GoldBean
 * @Description: 金币、钻石
 * @Author: ljp
 * @CreateDate: 2018/11/7 15:15
 * @Version: 1.0
 */
public class GoldBean {

    /**
     * code : 200
     * msg : 成功
     * object : {"isNewRecord":true,"gold":9500,"diamonds":960}
     */

    private int code;
    private String msg;
    private ObjectBean object;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ObjectBean getObject() {
        return object;
    }

    public void setObject(ObjectBean object) {
        this.object = object;
    }

    public static class ObjectBean {
        /**
         * isNewRecord : true
         * gold : 9500
         * diamonds : 960
         */

        private boolean isNewRecord;
        private int gold;//金币余额
        private int diamonds;//钻石余额
        private int totalIncome;          // 魅力值

        public int getTotalIncome() {
            return totalIncome/10;
        }

        public boolean isIsNewRecord() {
            return isNewRecord;
        }

        public void setIsNewRecord(boolean isNewRecord) {
            this.isNewRecord = isNewRecord;
        }

        public int getGold() {
            return gold/10;
        }

        public void setGold(int gold) {
            this.gold = gold;
        }

        public int getDiamonds() {
            return diamonds/10;
        }

        public void setDiamonds(int diamonds) {
            this.diamonds = diamonds;
        }

        @Override
        public String toString() {
            return "ObjectBean{" +
                    "isNewRecord=" + isNewRecord +
                    ", gold=" + gold +
                    ", diamonds=" + diamonds +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GoldBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", object=" + object +
                '}';
    }
}
